package com.numberone.web.controller.aboutfather;

import java.util.List;

import com.numberone.system.util.JsonResult;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.numberone.common.annotation.Log;
import com.numberone.common.enums.BusinessType;
import com.numberone.system.domain.AboutFather;
import com.numberone.system.service.IAboutFatherService;
import com.numberone.framework.web.base.BaseController;
import com.numberone.common.page.TableDataInfo;
import com.numberone.common.base.AjaxResult;
import com.numberone.common.utils.poi.ExcelUtil;

/**
 * 企业创始人 信息操作处理
 * 
 * @author 于沛麟
 * @date 2020-09-27
 */
@RestController
@RequestMapping("/api/aboutFather")
public class AboutFatherApiController extends BaseController
{
	
	@Autowired
	private IAboutFatherService aboutFatherService;

	/**
	 * 获取企业创始人相关信息
	 * @return
	 */
	@GetMapping("/get")
	public Object getAboutFather(){
		List<AboutFather> aboutFathers =  aboutFatherService.query();

		if (aboutFathers.isEmpty()){
			return JsonResult.nodata();
		}
		return JsonResult.success(aboutFathers);
	}
	

}
